package tkinit

import (
	tkuitls "github.com/ikaiguang/go_srv_kit/utils"
	"github.com/pkg/errors"
)

// Setup .
func Setup(appConf, section string) {
	var err error
	defer func() {
		if err != nil {
			tkuitls.ExitTracer(err)
		}
	}()

	// path
	err = InitPath()
	if err != nil {
		err = errors.WithMessage(err, "*** init project path fail : ")
		return
	}

	// configs
	configHandler, err = InitConfigs(ConfigPath())
	if err != nil {
		err = errors.WithMessage(err, "*** init configs fail : ")
		return
	}
}

// Close .
func Close() (err error) {
	return
}
